<?php
include 'logincheck.php';
$id = $_GET['id'];
include 'connect.php';

mysql_select_db($db, $con);

$query  = "SELECT * FROM {$table} WHERE id = {$id}";
$result = mysql_query($query) or die(mysql_error());

while($row = mysql_fetch_assoc($result)) {
	$name = stripslashes($row['Name']);
	$post = stripslashes($row['postBody']);
    echo "<html><body><div id='headText'>{$name}</div><div id='postText'>{$post}</div></body></html>";
}
mysql_close($con);
?>